package com.iweb.utils;

public class IsNumber {
    public static boolean isNumber(String str){
        int count=0;
        if (str==null||str.length()<11) return false;
        else {
            for (int i=0;i<str.length();i++) {
                char ch = str.charAt(i);
                if ((ch >= '0' && ch <= '9')) {
                    count++;
                }
            }
        }
        return count==11;
    }

    /*public static void main(String[] args) {
        System.out.println(isNumber("12345678911"));
    }*/
}
